From 5e71b8b0ddf24b798398507498028781e974cb3b Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 9 Jan 2006 19:46:46 +0100 Subject: [PATCH] Tiny bootstrap cleanup. Signed-off-by: Keir Fraser --- xen/arch/x86/setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 7903a93d64..3abeb9d992 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -165,9 +165,8 @@ void __init __start_xen(multiboot_info_t *mbi) if ( (mbi->flags & MBI_CMDLINE) && (mbi->cmdline != 0) ) cmdline_parse(__va(mbi->cmdline)); - /* Must do this early -- e.g., spinlocks rely on get_current(). */ - set_current(NULL/*idle_vcpu[0]*/); - set_processor_id(0); + set_current((struct vcpu *)0xfffff000); /* debug sanity */ + set_processor_id(0); /* needed early, for smp_processor_id() */ smp_prepare_boot_cpu(); -- 2.30.2